package com.yuven.appframework.network;

import com.yuven.appframework.config.AppFrameWorkConstant
import com.yuven.baselib.network.RetrofitConfiguration
import com.yuven.baselib.utils.NetHelper

/**
 * 
 *
 * @author :        Yuven
 * @date :          5/20/21 5:25 PM
 * @desc :
 */
class NetConfiguration private constructor() : RetrofitConfiguration {

    companion object {
        val instance: NetConfiguration by lazy {
            NetConfiguration() }
    }

    override fun getConnectTimeout(): Long {
        return AppFrameWorkConstant.NETWORK_CONNECT_TIMEOUT
    }

    override fun isNetworkAvailable(): Boolean {
        return NetHelper.isNetAvailable()
    }


}